package com.example.user1.util;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Component;

@Component
public class BCryptPasswordEncoderFactory implements PasswordEncoderFactory {
    private final static BCryptPasswordEncoder b = new BCryptPasswordEncoder();
    @Override
    public PasswordEncoder get() {
        return b;
    }
}
